import java.util.Scanner;

/**
 * Created with IntelliJ IDEA
 * Description:
 * User: Administrator
 * Data: 2023 - 10 - 14
 * Time: 18:12
 */
//牛客 求最小公倍数
public class Solution4 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        // 注意 hasNext 和 hasNextLine 的区别
        while (in.hasNextLong()) { // 注意 while 处理多个 case
            long a = in.nextLong();//因为测试用例数据太大，所以long
            long b = in.nextLong();
            long ab = gcd(a, b);
            System.out.println(a * b / ab);
        }
    }
    public static long gcd(long a, long b) {
        if(a == b) return a;
        if(a < b) {
            long temp = a;
            a = b;
            b = temp;
        }
        long r = 0;
        while((r = a % b) != 0) {//r = a % b要写入循环里，因为r初始值为0，如果写while(r != 0)的话则不会进入循环这会造成Bug
            a = b;
            b = r;
        }
        return b;
    }
}
